<template>
<div>
  <h1>用户添加页面</h1>
  用户名: <input type="text" v-model="form.yhm"><br>
  用户密码: <input type="text" v-model="form.pasdword"><br>
  用户类型： <input type="radio" v-model="form.dengji" name="1" value="1">普通用户
            <input type="radio" v-model="form.dengji" name="1" value="2">VIP用户<br>

  <button @click="add">添加</button>
</div>
</template>

<script>
export default {
  name: "ad_",
  data(){
    return{
      form:{},
    }
  },
  methods:{
    add(){
      this.axios.post('user/Auser/',this.form)
      .then(res=>{
        alert(res.data)
        this.$router.push('add_3/')
      })
    }
  },
  mounted() {
  }
}
</script>

<style scoped>

</style>
